<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>MySQLi 扩展的功能概述</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="mysqli.notes.html">« Notes</a></li>
      <li style="float: right;"><a href="class.mysqli.html">MySQLi »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.mysqli.html">Mysqli</a></li>
    <li>MySQLi 扩展的功能概述</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="mysqli.summary" class="chapter">

 <h1>MySQLi 扩展的功能概述</h1>


 <table class="doctable table">
  <caption><strong><span class="classname"><a href="class.mysqli.html" class="classname">mysqli</a></span> 方法的概述</strong></caption>
  
   <thead>
    <tr>
     <th>mysqli 类</th>
    </tr>

    <tr>
     <th>面向对象接口</th>
     <th>面向过程接口</th>
     <th>别名 (勿使用)</th>
     <th>描述</th>
    </tr>

   </thead>

   <tbody class="tbody">
    <tr>
     <td><em class="emphasis">属性</em></td>
    </tr>

    <tr>
     <td><a href="mysqli.affected-rows.html" class="link">$mysqli::affected_rows</a></td>
     <td><span class="function"><a href="mysqli.affected-rows.html" class="function">mysqli_affected_rows()</a></span></td>
     <td>N/A</td>
     <td>获取上次 Mysql 操作受影响的行数</td>
    </tr>

    <tr>
     <td><a href="mysqli.get-client-info.html" class="link">$mysqli::client_info</a></td>
     <td><span class="function"><a href="mysqli.get-client-info.html" class="function">mysqli_get_client_info()</a></span></td>
     <td>N/A</td>
     <td>返回 Mysql 客户端版本信息，类型为 string</td>
    </tr>

    <tr>
     <td><a href="mysqli.get-client-version.html" class="link">$mysqli::client_version</a></td>
     <td><span class="function"><a href="mysqli.get-client-version.html" class="function">mysqli_get_client_version()</a></span></td>
     <td>N/A</td>
     <td>返回 Mysql 客户端版本信息，类型为 integer</td>
    </tr>

    <tr>
     <td><a href="mysqli.connect-errno.html" class="link">$mysqli::connect_errno</a></td>
     <td><span class="function"><a href="mysqli.connect-errno.html" class="function">mysqli_connect_errno()</a></span></td>
     <td>N/A</td>
     <td>返回最后一次连接数据库的错误代码</td>
    </tr>

    <tr>
     <td><a href="mysqli.connect-error.html" class="link">$mysqli::connect_error</a></td>
     <td><span class="function"><a href="mysqli.connect-error.html" class="function">mysqli_connect_error()</a></span></td>
     <td>N/A</td>
     <td>返回最后一次连接数据库的错误描述，类型为字符串</td>
    </tr>

    <tr>
     <td><a href="mysqli.errno.html" class="link">$mysqli::errno</a></td>
     <td><span class="function"><a href="mysqli.errno.html" class="function">mysqli_errno()</a></span></td>
     <td>N/A</td>
     <td>返回最近一次函数调用所产生的错误代码</td>
    </tr>

    <tr>
     <td><a href="mysqli.error.html" class="link">$mysqli::error</a></td>
     <td><span class="function"><a href="mysqli.error.html" class="function">mysqli_error()</a></span></td>
     <td>N/A</td>
     <td>返回最近一次错误代码的描述，类型是字符串</td>
    </tr>

    <tr>
     <td><a href="mysqli.field-count.html" class="link">$mysqli::field_count</a></td>
     <td><span class="function"><a href="mysqli.field-count.html" class="function">mysqli_field_count()</a></span></td>
     <td>N/A</td>
     <td>返回最近一次查询中，包含的列的数量</td>
    </tr>

    <tr>
     <td><a href="mysqli.get-host-info.html" class="link">$mysqli::host_info</a></td>
     <td><span class="function"><a href="mysqli.get-host-info.html" class="function">mysqli_get_host_info()</a></span></td>
     <td>N/A</td>
     <td>返回字符串，表示数据库连接所使用的类型</td>
    </tr>

    <tr>
     <td><a href="mysqli.get-proto-info.html" class="link">$mysqli::protocol_version</a></td>
     <td><span class="function"><a href="mysqli.get-proto-info.html" class="function">mysqli_get_proto_info()</a></span></td>
     <td>N/A</td>
     <td>返回使用的 MySQL 协议的版本信息</td>
    </tr>

    <tr>
     <td><a href="mysqli.get-server-info.html" class="link">$mysqli::server_info</a></td>
     <td><span class="function"><a href="mysqli.get-server-info.html" class="function">mysqli_get_server_info()</a></span></td>
     <td>N/A</td>
     <td>返回 MySQL 服务器的版本</td>
    </tr>

    <tr>
     <td><a href="mysqli.get-server-version.html" class="link">$mysqli::server_version</a></td>
     <td><span class="function"><a href="mysqli.get-server-version.html" class="function">mysqli_get_server_version()</a></span></td>
     <td>N/A</td>
     <td>返回 MySQL 服务器的版本，类型为 integer</td>
    </tr>

    <tr>
     <td><a href="mysqli.info.html" class="link">$mysqli::info</a></td>
     <td><span class="function"><a href="mysqli.info.html" class="function">mysqli_info()</a></span></td>
     <td>N/A</td>
     <td>获取最近一次数据库查询的信息</td>
    </tr>

    <tr>
     <td><a href="mysqli.insert-id.html" class="link">$mysqli::insert_id</a></td>
     <td><span class="function"><a href="mysqli.insert-id.html" class="function">mysqli_insert_id()</a></span></td>
     <td>N/A</td>
     <td>返回上次查询中所使用的自动生成的 ID</td>
    </tr>

    <tr>
     <td><a href="mysqli.sqlstate.html" class="link">$mysqli::sqlstate</a></td>
     <td><span class="function"><a href="mysqli.sqlstate.html" class="function">mysqli_sqlstate()</a></span></td>
     <td>N/A</td>
     <td>返回上次 MySQL 操作的数据库状态错误（SQLSTATE  error）</td>
    </tr>

    <tr>
     <td><a href="mysqli.warning-count.html" class="link">$mysqli::warning_count</a></td>
     <td><span class="function"><a href="mysqli.warning-count.html" class="function">mysqli_warning_count()</a></span></td>
     <td>N/A</td>
     <td>根据数据库链接，返回最后一次数据库查询内警告的数量</td>
    </tr>

    <tr>
     <td><em class="emphasis">Methods</em></td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.autocommit.html" class="methodname">mysqli::autocommit()</a></span></td>
     <td><span class="function"><a href="mysqli.autocommit.html" class="function">mysqli_autocommit()</a></span></td>
     <td>N/A</td>
     <td>打开或关闭数据库的自动提交（auto-committing）功能</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.change-user.html" class="methodname">mysqli::change_user()</a></span></td>
     <td><span class="function"><a href="mysqli.change-user.html" class="function">mysqli_change_user()</a></span></td>
     <td>N/A</td>
     <td>更改指定数据库连接所使用的用户</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.character-set-name.html" class="methodname">mysqli::character_set_name()</a></span>,<a href="mysqli.character-set-name.html" class="link">
      mysqli::client_encoding</a></td>
     <td><span class="function"><a href="mysqli.character-set-name.html" class="function">mysqli_character_set_name()</a></span></td>
     <td><span class="function"><strong>mysqli_client_encoding()</strong></span></td>
     <td>返回数据库连接的默认字符集</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.close.html" class="methodname">mysqli::close()</a></span></td>
     <td><span class="function"><a href="mysqli.close.html" class="function">mysqli_close()</a></span></td>
     <td>N/A</td>
     <td>关闭先前打开的数据库连接</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.commit.html" class="methodname">mysqli::commit()</a></span></td>
     <td><span class="function"><a href="mysqli.commit.html" class="function">mysqli_commit()</a></span></td>
     <td>N/A</td>
     <td>提交当前的数据库事务</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.construct.html" class="methodname">mysqli::__construct()</a></span></td>
     <td><span class="function"><a href="function.mysqli-connect.html" class="function">mysqli_connect()</a></span></td>
     <td>N/A</td>
     <td>打开新连接到 MySQL 服务器［注意：静态方法]</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.debug.html" class="methodname">mysqli::debug()</a></span></td>
     <td><span class="function"><a href="mysqli.debug.html" class="function">mysqli_debug()</a></span></td>
     <td>N/A</td>
     <td>执行调试操作</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.dump-debug-info.html" class="methodname">mysqli::dump_debug_info()</a></span></td>
     <td><span class="function"><a href="mysqli.dump-debug-info.html" class="function">mysqli_dump_debug_info()</a></span></td>
     <td>N/A</td>
     <td>将调试信息转储到日志中</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.get-charset.html" class="methodname">mysqli::get_charset()</a></span></td>
     <td><span class="function"><a href="mysqli.get-charset.html" class="function">mysqli_get_charset()</a></span></td>
     <td>N/A</td>
     <td>返回包含字符集信息的对象</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.get-connection-stats.html" class="methodname">mysqli::get_connection_stats()</a></span></td>
     <td><span class="function"><a href="mysqli.get-connection-stats.html" class="function">mysqli_get_connection_stats()</a></span></td>
     <td>N/A</td>
     <td>返回客户端连接的统计信息。仅可用于 <a href="book.mysqlnd.html" class="link">mysqlnd</a>。</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.get-client-info.html" class="methodname">mysqli::get_client_info()</a></span></td>
     <td><span class="function"><a href="mysqli.get-client-info.html" class="function">mysqli_get_client_info()</a></span></td>
     <td>N/A</td>
     <td>返回 MySQL 客户端版本的字符串信息</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="function.mysqli-get-client-stats.html" class="methodname">mysqli::get_client_stats()</a></span></td>
     <td><span class="function"><a href="function.mysqli-get-client-stats.html" class="function">mysqli_get_client_stats()</a></span></td>
     <td>N/A</td>
     <td>返回每个客户端进程的统计信息。  仅可用于 <a href="book.mysqlnd.html" class="link">mysqlnd</a>。</td>
    </tr>

    <tr>
     <td><span class="methodname"><strong>mysqli::get_cache_stats()</strong></span></td>
     <td><span class="function"><strong>mysqli_get_cache_stats()</strong></span></td>
     <td>N/A</td>
     <td>返回客户端的 Zval 缓存统计信息。 仅可用于 <a href="book.mysqlnd.html" class="link">mysqlnd</a>。</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.get-server-info.html" class="methodname">mysqli::get_server_info()</a></span></td>
     <td><span class="function"><a href="mysqli.get-server-info.html" class="function">mysqli_get_server_info()</a></span></td>
     <td>N/A</td>
     <td>返回 MySQLi 连接上的 MySQL 服务器的版本字符串</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.get-warnings.html" class="methodname">mysqli::get_warnings()</a></span></td>
     <td><span class="function"><a href="mysqli.get-warnings.html" class="function">mysqli_get_warnings()</a></span></td>
     <td>N/A</td>
     <td>文档暂缺</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.init.html" class="methodname">mysqli::init()</a></span></td>
     <td><span class="function"><a href="mysqli.init.html" class="function">mysqli_init()</a></span></td>
     <td>N/A</td>
     <td>
      初始化 MySQLi，返回资源类型的值，可供 mysqli_real_connect 使用。
      [不要在对象上调用，它返回了 $mysqli 对象]</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.kill.html" class="methodname">mysqli::kill()</a></span></td>
     <td><span class="function"><a href="mysqli.kill.html" class="function">mysqli_kill()</a></span></td>
     <td>N/A</td>
     <td>请求服务器杀死一个 MySQL 线程</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.more-results.html" class="methodname">mysqli::more_results()</a></span></td>
     <td><span class="function"><a href="mysqli.more-results.html" class="function">mysqli_more_results()</a></span></td>
     <td>N/A</td>
     <td>检查多语句查询内是否还有更多查询结果</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.multi-query.html" class="methodname">mysqli::multi_query()</a></span></td>
     <td><span class="function"><a href="mysqli.multi-query.html" class="function">mysqli_multi_query()</a></span></td>
     <td>N/A</td>
     <td>在数据库内执行多语句查询</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.next-result.html" class="methodname">mysqli::next_result()</a></span></td>
     <td><span class="function"><a href="mysqli.next-result.html" class="function">mysqli_next_result()</a></span></td>
     <td>N/A</td>
     <td>从 multi_query 中准备下一个结果集</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.options.html" class="methodname">mysqli::options()</a></span></td>
     <td><span class="function"><a href="mysqli.options.html" class="function">mysqli_options()</a></span></td>
     <td><span class="function"><a href="function.mysqli-set-opt.html" class="function">mysqli_set_opt()</a></span></td>
     <td>设置选项</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.ping.html" class="methodname">mysqli::ping()</a></span></td>
     <td><span class="function"><a href="mysqli.ping.html" class="function">mysqli_ping()</a></span></td>
     <td>N/A</td>
     <td>Ping 服务器链接，如果链接已经断开，尝试重连</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.prepare.html" class="methodname">mysqli::prepare()</a></span></td>
     <td><span class="function"><a href="mysqli.prepare.html" class="function">mysqli_prepare()</a></span></td>
     <td>N/A</td>
     <td>准备（prepare）需要执行的 SQL 语句</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.query.html" class="methodname">mysqli::query()</a></span></td>
     <td><span class="function"><a href="mysqli.query.html" class="function">mysqli_query()</a></span></td>
     <td>N/A</td>
     <td>在数据库内执行查询</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.real-connect.html" class="methodname">mysqli::real_connect()</a></span></td>
     <td><span class="function"><a href="mysqli.real-connect.html" class="function">mysqli_real_connect()</a></span></td>
     <td>N/A</td>
     <td>打开一个 MySQL 服务端的连接</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.real-escape-string.html" class="methodname">mysqli::real_escape_string()</a></span>,
      <span class="methodname"><a href="function.mysqli-escape-string.html" class="methodname">mysqli::escape_string()</a></span></td>
     <td><span class="function"><a href="mysqli.real-escape-string.html" class="function">mysqli_real_escape_string()</a></span></td>
     <td><span class="function"><a href="function.mysqli-escape-string.html" class="function">mysqli_escape_string()</a></span></td>
     <td>转义特殊字符，用于 SQL 语句，该转换会考虑连接中当前的字符集</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.real-query.html" class="methodname">mysqli::real_query()</a></span></td>
     <td><span class="function"><a href="mysqli.real-query.html" class="function">mysqli_real_query()</a></span></td>
     <td>N/A</td>
     <td>执行 SQL 查询</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.refresh.html" class="methodname">mysqli::refresh()</a></span></td>
     <td><span class="function"><a href="mysqli.refresh.html" class="function">mysqli_refresh()</a></span></td>
     <td>N/A</td>
     <td>刷新表或缓存，或重置复制（replication）服务器信息</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.rollback.html" class="methodname">mysqli::rollback()</a></span></td>
     <td><span class="function"><a href="mysqli.rollback.html" class="function">mysqli_rollback()</a></span></td>
     <td>N/A</td>
     <td>回滚当前事务</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.select-db.html" class="methodname">mysqli::select_db()</a></span></td>
     <td><span class="function"><a href="mysqli.select-db.html" class="function">mysqli_select_db()</a></span></td>
     <td>N/A</td>
     <td>为数据库查询设置默认数据库</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.set-charset.html" class="methodname">mysqli::set_charset()</a></span></td>
     <td><span class="function"><a href="mysqli.set-charset.html" class="function">mysqli_set_charset()</a></span></td>
     <td>N/A</td>
     <td>设置默认的客户端字符集</td>
    </tr>

    <tr>
     <td><span class="methodname"><strong>mysqli::set_local_infile_default()</strong></span></td>
     <td><span class="function"><strong>mysqli_set_local_infile_default()</strong></span></td>
     <td>N/A</td>
     <td>清除用户设置的 load data local infile 命令的处理程序</td>
    </tr>

    <tr>
     <td><span class="methodname"><strong>mysqli::set_local_infile_handler()</strong></span></td>
     <td><span class="function"><strong>mysqli_set_local_infile_handler()</strong></span></td>
     <td>N/A</td>
     <td>设置 LOAD DATA LOCAL INFILE 命令执行的回调函数</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.ssl-set.html" class="methodname">mysqli::ssl_set()</a></span></td>
     <td><span class="function"><a href="mysqli.ssl-set.html" class="function">mysqli_ssl_set()</a></span></td>
     <td>N/A</td>
     <td>使用 SSL 建立安全连接</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.stat.html" class="methodname">mysqli::stat()</a></span></td>
     <td><span class="function"><a href="mysqli.stat.html" class="function">mysqli_stat()</a></span></td>
     <td>N/A</td>
     <td>获取当前系统状态</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.stmt-init.html" class="methodname">mysqli::stmt_init()</a></span></td>
     <td><span class="function"><a href="mysqli.stmt-init.html" class="function">mysqli_stmt_init()</a></span></td>
     <td>N/A</td>
     <td>初始化语句并且返回供 mysqli_stmt_prepare 使用的对象</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.store-result.html" class="methodname">mysqli::store_result()</a></span></td>
     <td><span class="function"><a href="mysqli.store-result.html" class="function">mysqli_store_result()</a></span></td>
     <td>N/A</td>
     <td>传输最后一个查询的结果集</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.thread-id.html" class="methodname">mysqli::thread_id()</a></span></td>
     <td><span class="function"><a href="mysqli.thread-id.html" class="function">mysqli_thread_id()</a></span></td>
     <td>N/A</td>
     <td>返回当前连接的线程ID</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.thread-safe.html" class="methodname">mysqli::thread_safe()</a></span></td>
     <td><span class="function"><a href="mysqli.thread-safe.html" class="function">mysqli_thread_safe()</a></span></td>
     <td>N/A</td>
     <td>返回是否设定了线程安全</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.use-result.html" class="methodname">mysqli::use_result()</a></span></td>
     <td><span class="function"><a href="mysqli.use-result.html" class="function">mysqli_use_result()</a></span></td>
     <td>N/A</td>
     <td>初始化一个结果集的取回</td>
    </tr>

   </tbody>
  
 </table>


 <table class="doctable table">
  <caption><strong><span class="classname"><a href="class.mysqli-stmt.html" class="classname">mysqli_stmt</a></span> 的方法概述</strong></caption>
  
   <thead>
    <tr>
     <th>MySQL_STMT</th>
    </tr>

    <tr>
     <th>面向对象接口</th>
     <th>面向过程接口</th>
     <th>别名 (勿使用)</th>
     <th>描述</th>
    </tr>

   </thead>

   <tbody class="tbody">
    <tr>
     <td><em class="emphasis">属性</em></td>
    </tr>

    <tr>
     <td><a href="mysqli-stmt.affected-rows.html" class="link">$mysqli_stmt::affected_rows</a></td>
     <td><span class="function"><a href="mysqli-stmt.affected-rows.html" class="function">mysqli_stmt_affected_rows()</a></span></td>
     <td>N/A</td>
     <td>返回受上次执行语句影响的总行数：修改、删除或插入</td>
    </tr>

    <tr>
     <td><a href="mysqli-stmt.errno.html" class="link">$mysqli_stmt::errno</a></td>
     <td><span class="function"><a href="mysqli-stmt.errno.html" class="function">mysqli_stmt_errno()</a></span></td>
     <td>N/A</td>
     <td>返回最近一次语句调用的错误代码</td>
    </tr>

    <tr>
     <td><a href="mysqli-stmt.error.html" class="link">$mysqli_stmt::error</a></td>
     <td><span class="function"><a href="mysqli-stmt.error.html" class="function">mysqli_stmt_error()</a></span></td>
     <td>N/A</td>
     <td>返回最后一条语句错误的字符串描述</td>
    </tr>

    <tr>
     <td><a href="mysqli-stmt.field-count.html" class="link">$mysqli_stmt::field_count</a></td>
     <td><span class="function"><a href="mysqli-stmt.field-count.html" class="function">mysqli_stmt_field_count()</a></span></td>
     <td>N/A</td>
     <td>返回语句内的字段数量 - 文档暂缺</td>
    </tr>

    <tr>
     <td><a href="mysqli-stmt.insert-id.html" class="link">$mysqli_stmt::insert_id</a></td>
     <td><span class="function"><a href="mysqli-stmt.insert-id.html" class="function">mysqli_stmt_insert_id()</a></span></td>
     <td>N/A</td>
     <td>获取上次 INSERT 操作生成的ID</td>
    </tr>

    <tr>
     <td><a href="mysqli-stmt.num-rows.html" class="link">$mysqli_stmt::num_rows</a></td>
     <td><span class="function"><a href="mysqli-stmt.num-rows.html" class="function">mysqli_stmt_num_rows()</a></span></td>
     <td>N/A</td>
     <td>返回语句结果集中的行数</td>
    </tr>

    <tr>
     <td><a href="mysqli-stmt.param-count.html" class="link">$mysqli_stmt::param_count</a></td>
     <td><span class="function"><a href="mysqli-stmt.param-count.html" class="function">mysqli_stmt_param_count()</a></span></td>
     <td><span class="function"><strong>mysqli_param_count()</strong></span></td>
     <td>返回语句中参数的数量</td>
    </tr>

    <tr>
     <td><a href="mysqli-stmt.sqlstate.html" class="link">$mysqli_stmt::sqlstate</a></td>
     <td><span class="function"><a href="mysqli-stmt.sqlstate.html" class="function">mysqli_stmt_sqlstate()</a></span></td>
     <td>N/A</td>
     <td>返回上次执行 SQL 语句的 SQLSTATE 错误代码</td>
    </tr>

    <tr>
     <td><em class="emphasis">方法</em></td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.attr-get.html" class="methodname">mysqli_stmt::attr_get()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.attr-get.html" class="function">mysqli_stmt_attr_get()</a></span></td>
     <td>N/A</td>
     <td>用于获取语句属性的当前值</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.attr-set.html" class="methodname">mysqli_stmt::attr_set()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.attr-set.html" class="function">mysqli_stmt_attr_set()</a></span></td>
     <td>N/A</td>
     <td>用于修改 prepared 语句的行为</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.bind-param.html" class="methodname">mysqli_stmt::bind_param()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.bind-param.html" class="function">mysqli_stmt_bind_param()</a></span></td>
     <td><span class="function"><strong>mysqli_bind_param()</strong></span></td>
     <td>绑定变量参数到 prepared 语句</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.bind-result.html" class="methodname">mysqli_stmt::bind_result()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.bind-result.html" class="function">mysqli_stmt_bind_result()</a></span></td>
     <td><span class="function"><strong>mysqli_bind_result()</strong></span></td>
     <td>绑定变量参数到 prepared 语句，用于结果存储</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.close.html" class="methodname">mysqli_stmt::close()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.close.html" class="function">mysqli_stmt_close()</a></span></td>
     <td>N/A</td>
     <td>关闭 prepared 语句</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.data-seek.html" class="methodname">mysqli_stmt::data_seek()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.data-seek.html" class="function">mysqli_stmt_data_seek()</a></span></td>
     <td>N/A</td>
     <td>定位到结果集中的任意行</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.execute.html" class="methodname">mysqli_stmt::execute()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.execute.html" class="function">mysqli_stmt_execute()</a></span></td>
     <td><span class="function"><a href="function.mysqli-execute.html" class="function">mysqli_execute()</a></span></td>
     <td>执行 prepared 查询</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.fetch.html" class="methodname">mysqli_stmt::fetch()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.fetch.html" class="function">mysqli_stmt_fetch()</a></span></td>
     <td><span class="function"><strong>mysqli_fetch()</strong></span></td>
     <td>获取 prepared 语句中的结果，到指定变量中</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.free-result.html" class="methodname">mysqli_stmt::free_result()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.free-result.html" class="function">mysqli_stmt_free_result()</a></span></td>
     <td>N/A</td>
     <td>释放给定语句处理存储的结果集所占内存</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.get-result.html" class="methodname">mysqli_stmt::get_result()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.get-result.html" class="function">mysqli_stmt_get_result()</a></span></td>
     <td>N/A</td>
     <td>获取 prepared 语句中的结果。 仅可用于 <a href="book.mysqlnd.html" class="link">mysqlnd</a>。</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.get-warnings.html" class="methodname">mysqli_stmt::get_warnings()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.get-warnings.html" class="function">mysqli_stmt_get_warnings()</a></span></td>
     <td>N/A</td>
     <td>暂无文档</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.more-results.html" class="methodname">mysqli_stmt::more_results()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.more-results.html" class="function">mysqli_stmt_more_results()</a></span></td>
     <td>N/A</td>
     <td>检查多语句查询中是否还有更多结果</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.next-result.html" class="methodname">mysqli_stmt::next_result()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.next-result.html" class="function">mysqli_stmt_next_result()</a></span></td>
     <td>N/A</td>
     <td>读取多语句查询中下一条结果</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.num-rows.html" class="methodname">mysqli_stmt::num_rows()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.num-rows.html" class="function">mysqli_stmt_num_rows()</a></span></td>
     <td>N/A</td>
     <td>参见 <a href="mysqli-stmt.num-rows.html" class="link">$mysqli_stmt::num_rows</a> 中的属性</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.prepare.html" class="methodname">mysqli_stmt::prepare()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.prepare.html" class="function">mysqli_stmt_prepare()</a></span></td>
     <td>N/A</td>
     <td>准备执行 SQL 语句</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.reset.html" class="methodname">mysqli_stmt::reset()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.reset.html" class="function">mysqli_stmt_reset()</a></span></td>
     <td>N/A</td>
     <td>重置 prepare 语句</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.result-metadata.html" class="methodname">mysqli_stmt::result_metadata()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.result-metadata.html" class="function">mysqli_stmt_result_metadata()</a></span></td>
     <td><span class="function"><strong>mysqli_get_metadata()</strong></span></td>
     <td>返回 prepare 语句结果集内的元数据</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.send-long-data.html" class="methodname">mysqli_stmt::send_long_data()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.send-long-data.html" class="function">mysqli_stmt_send_long_data()</a></span></td>
     <td><span class="function"><strong>mysqli_send_long_data()</strong></span></td>
     <td>以块形式发送数据</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.store-result.html" class="methodname">mysqli_stmt::store_result()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.store-result.html" class="function">mysqli_stmt_store_result()</a></span></td>
     <td>N/A</td>
     <td>从 prepare 语句中传输储存结果集</td>
    </tr>

   </tbody>
  
 </table>


 <table class="doctable table">
  <caption><strong><span class="classname"><a href="class.mysqli-result.html" class="classname">mysqli_result</a></span> 方法概述</strong></caption>
  
   <thead>
    <tr>
     <th>mysqli_result</th>
    </tr>

    <tr>
     <th>面向对象接口</th>
     <th>面向过程接口</th>
     <th>别名 (勿使用)</th>
     <th>描述</th>
    </tr>

   </thead>

   <tbody class="tbody">
    <tr>
     <td><em class="emphasis">属性</em></td>
    </tr>

    <tr>
     <td><a href="mysqli-result.current-field.html" class="link">$mysqli_result::current_field</a></td>
     <td><span class="function"><a href="mysqli-result.current-field.html" class="function">mysqli_field_tell()</a></span></td>
     <td>N/A</td>
     <td>获取当前字段在结果集指针中的开始位置</td>
    </tr>

    <tr>
     <td><a href="mysqli-result.field-count.html" class="link">$mysqli_result::field_count</a></td>
     <td><span class="function"><a href="mysqli-result.field-count.html" class="function">mysqli_num_fields()</a></span></td>
     <td>N/A</td>
     <td>获取结果中字段数量</td>
    </tr>

    <tr>
     <td><a href="mysqli-result.lengths.html" class="link">$mysqli_result::lengths</a></td>
     <td><span class="function"><a href="mysqli-result.lengths.html" class="function">mysqli_fetch_lengths()</a></span></td>
     <td>N/A</td>
     <td>返回结果集中当前行的列长度</td>
    </tr>

    <tr>
     <td><a href="mysqli-result.num-rows.html" class="link">$mysqli_result::num_rows</a></td>
     <td><span class="function"><a href="mysqli-result.num-rows.html" class="function">mysqli_num_rows()</a></span></td>
     <td>N/A</td>
     <td>获取结果中行的数量</td>
    </tr>

    <tr>
     <td><em class="emphasis">方法</em></td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-result.data-seek.html" class="methodname">mysqli_result::data_seek()</a></span></td>
     <td><span class="function"><a href="mysqli-result.data-seek.html" class="function">mysqli_data_seek()</a></span></td>
     <td>N/A</td>
     <td>将结果中的结果指针调整到任意行</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-result.fetch-all.html" class="methodname">mysqli_result::fetch_all()</a></span></td>
     <td><span class="function"><a href="mysqli-result.fetch-all.html" class="function">mysqli_fetch_all()</a></span></td>
     <td>N/A</td>
     <td>抓取所有的结果行并且以关联数据，数值索引数组，或者两者皆有的方式返回结果集。 仅可用于 <a href="book.mysqlnd.html" class="link">mysqlnd</a>。</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-result.fetch-array.html" class="methodname">mysqli_result::fetch_array()</a></span></td>
     <td><span class="function"><a href="mysqli-result.fetch-array.html" class="function">mysqli_fetch_array()</a></span></td>
     <td>N/A</td>
     <td>以一个关联数组，数值索引数组，或者两者皆有的方式抓取一行结果</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-result.fetch-assoc.html" class="methodname">mysqli_result::fetch_assoc()</a></span></td>
     <td><span class="function"><a href="mysqli-result.fetch-assoc.html" class="function">mysqli_fetch_assoc()</a></span></td>
     <td>N/A</td>
     <td>以一个关联数组方式抓取一行结果</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-result.fetch-field-direct.html" class="methodname">mysqli_result::fetch_field_direct()</a></span></td>
     <td><span class="function"><a href="mysqli-result.fetch-field-direct.html" class="function">mysqli_fetch_field_direct()</a></span></td>
     <td>N/A</td>
     <td>抓取一个单字段的元数据</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-result.fetch-field.html" class="methodname">mysqli_result::fetch_field()</a></span></td>
     <td><span class="function"><a href="mysqli-result.fetch-field.html" class="function">mysqli_fetch_field()</a></span></td>
     <td>N/A</td>
     <td>返回结果集中的下一个字段</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-result.fetch-fields.html" class="methodname">mysqli_result::fetch_fields()</a></span></td>
     <td><span class="function"><a href="mysqli-result.fetch-fields.html" class="function">mysqli_fetch_fields()</a></span></td>
     <td>N/A</td>
     <td>返回一个代表结果集字段的对象数组</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-result.fetch-object.html" class="methodname">mysqli_result::fetch_object()</a></span></td>
     <td><span class="function"><a href="mysqli-result.fetch-object.html" class="function">mysqli_fetch_object()</a></span></td>
     <td>N/A</td>
     <td>以一个对象的方式返回一个结果集中的当前行</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-result.fetch-row.html" class="methodname">mysqli_result::fetch_row()</a></span></td>
     <td><span class="function"><a href="mysqli-result.fetch-row.html" class="function">mysqli_fetch_row()</a></span></td>
     <td>N/A</td>
     <td>以一个枚举数组方式返回一行结果</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-result.field-seek.html" class="methodname">mysqli_result::field_seek()</a></span></td>
     <td><span class="function"><a href="mysqli-result.field-seek.html" class="function">mysqli_field_seek()</a></span></td>
     <td>N/A</td>
     <td>设置结果指针到特定的字段开始位置</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-result.free.html" class="methodname">mysqli_result::free()</a></span>,
      <a href="mysqli-result.free.html" class="link">mysqli_result::close</a>,
      <a href="mysqli-result.free.html" class="link">mysqli_result::free_result</a></td>
     <td><span class="function"><a href="mysqli-result.free.html" class="function">mysqli_free_result()</a></span></td>
     <td>N/A</td>
     <td>释放与一个结果集相关的内存</td>
    </tr>

   </tbody>
  
 </table>


 <table class="doctable table">
  <caption><strong><span class="classname"><a href="class.mysqli-driver.html" class="classname">mysqli_driver</a></span> 的方法概述</strong></caption>
  
   <thead>
    <tr>
     <th>MySQL_Driver</th>
    </tr>

    <tr>
     <th>面向对象接口</th>
     <th>面向过程接口</th>
     <th>别名 (勿使用)</th>
     <th>描述</th>
    </tr>

   </thead>

   <tbody class="tbody">
    <tr>
     <td><em class="emphasis">属性</em></td>
    </tr>

    <tr>
     <td>N/A</td>
    </tr>

    <tr>
     <td><em class="emphasis">方法</em></td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-driver.embedded-server-end.html" class="methodname">mysqli_driver::embedded_server_end()</a></span></td>
     <td><span class="function"><a href="mysqli-driver.embedded-server-end.html" class="function">mysqli_embedded_server_end()</a></span></td>
     <td>N/A</td>
     <td>文档暂缺</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-driver.embedded-server-start.html" class="methodname">mysqli_driver::embedded_server_start()</a></span></td>
     <td><span class="function"><a href="mysqli-driver.embedded-server-start.html" class="function">mysqli_embedded_server_start()</a></span></td>
     <td>N/A</td>
     <td>文档暂缺</td>
    </tr>

   </tbody>
  
 </table>


 <blockquote class="note"><p><strong class="note">注意</strong>: 
  <p class="para">
    提供函数的别名，目的仅为向下兼容。不要在新项目中使用！
  </p>
 </p></blockquote>

</div>
</div></div></body></html>